package com.hl.shifangzhiyu.service.Impl;

import com.hl.shifangzhiyu.mapper.WentiMapper;
import com.hl.shifangzhiyu.pojo.Wenti;
import com.hl.shifangzhiyu.service.WentiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WentiServiceImpl implements WentiService {

@Autowired
private WentiMapper wentiMapper;

    @Override
    public int Insert(Wenti wenti) {
        return wentiMapper.insert(wenti);
    }

    @Override
    public List<Wenti> SelectAll(int zId) {
        return wentiMapper.selectAll(zId);
    }
}
